class People {
  name: string
  age: number
}

let myHandler = async function (event, context, callback, logger) {
  // SDK调用时参数是按照JSON格式字符串传入的，key名为body
  const input = JSON.parse(event.body) as People

  callback({
    code: 0,
    desc: `你好呀！我是${input.name}，今年芳龄${input.age}~`
  });
};

export { myHandler };

